import base64
import os


def encode_base64(file):
    return str(base64.b64encode(file), 'utf-8')
